#ifndef _BITMAPS_H_
#define _BITMAPS_H_

const uint8_t icon_pointer[] PROGMEM = {
  // 6x7px
  0x20, 0x30, 0xf8, 0xfc, 0xf8, 0x30, 0x20
};

const uint8_t icon_crosshair [] PROGMEM = {
  //5x5px
  0x20, 0x20, 0xd8, 0x20, 0x20
};

const uint8_t icon_switch_is_off [] PROGMEM = {
  //13x8px
  0xff, 0xf8, 0x82, 0x08, 0xba, 0x48, 0xaa, 0x48, 0xba, 0x48, 0x82, 0x08, 0xff, 0xf8, 0x38, 0x00
};
const uint8_t icon_switch_is_on [] PROGMEM = {
  //13x8px
  0xff, 0xf8, 0x82, 0x08, 0xba, 0x48, 0xaa, 0x48, 0xba, 0x48, 0x82, 0x08, 0xff, 0xf8, 0x00, 0xe0
};

const uint8_t icon_rf[] PROGMEM = {
  // 7x7px
  0x44, 0x82, 0xba, 0x92, 0x54, 0x10, 0x10
};

const uint8_t icon_dualrate[] PROGMEM = {
  // 13x6px
  0xff, 0xf8, 0x9e, 0x98, 0xad, 0xa8, 0xad, 0x98, 0x9b, 0xa8, 0xff, 0xf8
};

const uint8_t icon_checkbox_checked[] PROGMEM = {
  // 7x7px
  0xfa, 0x86, 0x8c, 0xda, 0xf2, 0xa2, 0xfe
};

const uint8_t icon_checkbox_unchecked[] PROGMEM = {
  // 7x7px
  0xfe, 0x82, 0x82, 0x82, 0x82, 0x82, 0xfe
};

const uint8_t icon_tick_mark [] PROGMEM = {
  // 6x5px
  0x04, 0x0c, 0xd8, 0x70, 0x20
};

const uint8_t icon_mute[] PROGMEM = {
  // 8x7px
  0x10, 0x30, 0xd5, 0x92, 0xd5, 0x30, 0x10
};

const uint8_t icon_mute_tiny[] PROGMEM = {
  // 6x5
  0x40, 0xd4, 0xc8, 0xd4, 0x40
};

const uint8_t icon_context_menu[] PROGMEM = {
  // 8x7px
  0x00, 0x5e, 0x00, 0x5e, 0x00, 0x5e, 0x00
};

const uint8_t icon_context_menu_focused[] PROGMEM = {
  // 8x7px
  0xff, 0xa1, 0xff, 0xa1, 0xff, 0xa1, 0xff
};

const uint8_t icon_padlock[] PROGMEM = {
  // 5x7px
  0x20, 0x50, 0x50, 0x50, 0xf8, 0xd8, 0xf8
};

const uint8_t icon_checkmark_bold[] PROGMEM = {
  // 7x6px
  0x02, 0x06, 0x0c, 0xd8, 0x70, 0x20
};

const uint8_t icon_checkmark_regular [] PROGMEM = {
  // 7x5px
  0x02, 0x04, 0x88, 0x50, 0x20
};

const uint8_t icon_warning [] PROGMEM = {
  // 11x10px
  0x04, 0x00, 0x0a, 0x00, 0x11, 0x00, 0x15, 0x00, 0x24, 0x80, 0x24, 0x80, 0x40, 0x40, 0x44, 0x40, 
  0x80, 0x20, 0xff, 0xe0
};

const uint8_t icon_down_arrow_small [] PROGMEM = {
  // 5x3px
  0xf8, 0x70, 0x20
};

const uint8_t icon_up_arrow_small [] PROGMEM = {
  // 5x3px
  0x20, 0x70, 0xf8
};


//-------------------------- Main menu icons ----------------------------------
//All are 15x11px
const uint8_t icon_m_telemetry [] PROGMEM = {
  0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x02, 0x10, 0x02, 0x20, 0x03, 0x00, 0x01, 0x80, 0x04, 0xe0, 
  0x0e, 0x00, 0x1f, 0x00, 0x00, 0x00
};
const uint8_t icon_m_model [] PROGMEM = {
  0x00, 0x00, 0x1f, 0xf0, 0x10, 0x10, 0x17, 0xd0, 0x10, 0x10, 0x17, 0xd0, 0x10, 0x50, 0x10, 0x50, 
  0x10, 0x10, 0x1f, 0xf0, 0x00, 0x00
};
const uint8_t icon_m_mixer [] PROGMEM = {
  0x00, 0x00, 0x60, 0x0c, 0x13, 0x90, 0x04, 0x40, 0x09, 0x20, 0x09, 0x20, 0x09, 0x20, 0x04, 0x40, 
  0x13, 0x90, 0x60, 0x0c, 0x00, 0x00
};
const uint8_t icon_m_receiver [] PROGMEM = {
  0x00, 0x00, 0x00, 0x00, 0x3f, 0xf0, 0x20, 0x1c, 0x38, 0x10, 0x20, 0x10, 0x38, 0x50, 0x20, 0x10, 
  0x3f, 0xf0, 0x00, 0x00, 0x00, 0x00
};
const uint8_t icon_m_inputs [] PROGMEM = {
  0x00, 0x00, 0x0f, 0xe0, 0x10, 0x10, 0x12, 0x10, 0x01, 0x10, 0x3c, 0x90, 0x01, 0x10, 0x12, 0x10, 
  0x10, 0x10, 0x0f, 0xe0, 0x00, 0x00
};

const uint8_t icon_m_outputs [] PROGMEM = {
  0x00, 0x00, 0x1f, 0xf0, 0x20, 0x08, 0x21, 0x88, 0x22, 0x48, 0x22, 0x28, 0x21, 0x20, 0x20, 0x90, 
  0x1e, 0x50, 0x00, 0x30, 0x00, 0x00
};
const uint8_t icon_m_system_setup [] PROGMEM = {
  0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x50, 0x14, 0x1f, 0xf0, 0x1f, 0xf0, 0x50, 0x14, 0x20, 0x08, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

const uint8_t icon_m_extras [] PROGMEM = {
  0x00, 0x00, 0x1e, 0x40, 0x12, 0x40, 0x12, 0x70, 0x1e, 0x00, 0x00, 0x00, 0x1e, 0xf0, 0x12, 0x90, 
  0x12, 0x90, 0x1e, 0xf0, 0x00, 0x00
};

const uint8_t icon_m_about [] PROGMEM = {
  0x00, 0x00, 0x03, 0x80, 0x0e, 0xe0, 0x0f, 0xe0, 0x1c, 0xf0, 0x1e, 0xf0, 0x1e, 0xf0, 0x0c, 0x60, 
  0x0f, 0xe0, 0x03, 0x80, 0x00, 0x00
};

const uint8_t* const mainMenuIcons[] PROGMEM = {
  icon_m_model,
  icon_m_inputs,
  icon_m_mixer,
  icon_m_outputs,
  icon_m_extras,
  icon_m_telemetry,
  icon_m_system_setup,
  icon_m_receiver,
  icon_m_about
};

//-------------------------------------- Animated sprite sheets ------------------------------------

//---- animation_low_batt ----
// 27x11px. Only store one bitmap for identical frames 
const uint8_t lowBattBitmap0 [] PROGMEM = {
  0x7f, 0xff, 0xff, 0x80, 0xc0, 0x00, 0x00, 0x40, 0xc0, 0x00, 0x00, 0x40, 0xe0, 0x00, 0x00, 0x60, 
  0xe0, 0x00, 0x00, 0x60, 0xf0, 0x00, 0x00, 0x60, 0xf0, 0x00, 0x00, 0x60, 0xf0, 0x00, 0x00, 0x60, 
  0xf8, 0x00, 0x00, 0x40, 0xf8, 0x00, 0x00, 0x40, 0x7f, 0xff, 0xff, 0x80
};
const uint8_t lowBattBitmap1 [] PROGMEM = {
  0x7f, 0xff, 0xff, 0x80, 0xf8, 0x00, 0x00, 0x40, 0xf8, 0x00, 0x00, 0x40, 0xf0, 0x00, 0x00, 0x60, 
  0xf0, 0x00, 0x00, 0x60, 0xf0, 0x00, 0x00, 0x60, 0xe0, 0x00, 0x00, 0x60, 0xe0, 0x00, 0x00, 0x60, 
  0xc0, 0x00, 0x00, 0x40, 0xc0, 0x00, 0x00, 0x40, 0x7f, 0xff, 0xff, 0x80
};
const uint8_t lowBattBitmap2 [] PROGMEM = {
  0x7f, 0xff, 0xff, 0x80, 0x80, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x60, 
  0x80, 0x00, 0x00, 0x60, 0x80, 0x00, 0x00, 0x60, 0x80, 0x00, 0x00, 0x60, 0x80, 0x00, 0x00, 0x60, 
  0x80, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x40, 0x7f, 0xff, 0xff, 0x80
};

const uint8_t* const animation_low_batt [] PROGMEM = { //Bitmap table,  total 7 frames
  lowBattBitmap0, lowBattBitmap1, lowBattBitmap0, lowBattBitmap1, lowBattBitmap0, 
  lowBattBitmap2, lowBattBitmap2
};

//---- animation_hourglass ----
// 12x12px
const uint8_t hourglassBitmap0 [] PROGMEM = {
  0x00, 0x00, 0x3f, 0xc0, 0x3f, 0xc0, 0x3f, 0xc0, 0x1f, 0x80, 0x0f, 0x00, 0x09, 0x00, 0x10, 0x80, 
  0x20, 0x40, 0x20, 0x40, 0x3f, 0xc0, 0x00, 0x00
};
const uint8_t hourglassBitmap1 [] PROGMEM = {
  0x00, 0x00, 0x3f, 0xc0, 0x20, 0x40, 0x3f, 0xc0, 0x1f, 0x80, 0x0f, 0x00, 0x09, 0x00, 0x10, 0x80, 
  0x20, 0x40, 0x3f, 0xc0, 0x3f, 0xc0, 0x00, 0x00
};
const uint8_t hourglassBitmap2 [] PROGMEM = {
  0x00, 0x00, 0x3f, 0xc0, 0x20, 0x40, 0x20, 0x40, 0x1f, 0x80, 0x0f, 0x00, 0x09, 0x00, 0x10, 0x80, 
  0x3f, 0xc0, 0x3f, 0xc0, 0x3f, 0xc0, 0x00, 0x00
};
const uint8_t hourglassBitmap3 [] PROGMEM = {
  0x00, 0x00, 0x3f, 0xc0, 0x20, 0x40, 0x20, 0x40, 0x10, 0x80, 0x0f, 0x00, 0x09, 0x00, 0x1f, 0x80, 
  0x3f, 0xc0, 0x3f, 0xc0, 0x3f, 0xc0, 0x00, 0x00
};
const uint8_t hourglassBitmap4 [] PROGMEM = {
  0x00, 0x00, 0x3f, 0xc0, 0x20, 0x40, 0x20, 0x40, 0x10, 0x80, 0x09, 0x00, 0x0f, 0x00, 0x1f, 0x80, 
  0x3f, 0xc0, 0x3f, 0xc0, 0x3f, 0xc0, 0x00, 0x00
};
const uint8_t hourglassBitmap5 [] PROGMEM = {
  0x01, 0x00, 0x02, 0x80, 0x04, 0x40, 0x04, 0x20, 0x1c, 0x10, 0x3e, 0x20, 0x7f, 0xc0, 0x3f, 0x00, 
  0x1f, 0x00, 0x0e, 0x00, 0x04, 0x00, 0x00, 0x00
};
const uint8_t hourglassBitmap6 [] PROGMEM = {
  0x00, 0x00, 0x00, 0x00, 0x70, 0xe0, 0x79, 0x20, 0x7e, 0x20, 0x7c, 0x20, 0x7c, 0x20, 0x7e, 0x20, 
  0x79, 0x20, 0x70, 0xe0, 0x00, 0x00, 0x00, 0x00
};
const uint8_t hourglassBitmap7 [] PROGMEM = {
  0x08, 0x00, 0x1c, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0xff, 0x80, 0x7c, 0x40, 0x38, 0x20, 0x08, 0x40, 
  0x08, 0x80, 0x05, 0x00, 0x02, 0x00, 0x00, 0x00
};

const uint8_t* const animation_hourglass [] PROGMEM = { //Bitmap table,  total 8 frames
  hourglassBitmap0, hourglassBitmap1, hourglassBitmap2, hourglassBitmap3, hourglassBitmap4,
  hourglassBitmap5, hourglassBitmap6, hourglassBitmap7
};

//----- simple flappy bird game (easter egg) ----
//17x12px
const uint8_t bird_wing_up [] PROGMEM = {
  0x03, 0xf0, 0x00, 0x0c, 0x48, 0x00, 0x10, 0x84, 0x00, 0x78, 0x8a, 0x00, 0x84, 0x8a, 0x00, 0x82, 
  0x42, 0x00, 0x82, 0x3f, 0x00, 0x44, 0x40, 0x80, 0x38, 0xbf, 0x00, 0x20, 0x41, 0x00, 0x18, 0x3e, 
  0x00, 0x07, 0xc0, 0x00
};
const uint8_t bird_wing_mid [] PROGMEM = {
  0x03, 0xf0, 0x00, 0x0c, 0x48, 0x00, 0x10, 0x84, 0x00, 0x20, 0x8a, 0x00, 0x40, 0x8a, 0x00, 0x7c, 
  0x42, 0x00, 0x82, 0x3f, 0x00, 0x82, 0x40, 0x80, 0x7c, 0xbf, 0x00, 0x20, 0x41, 0x00, 0x18, 0x3e, 
  0x00, 0x07, 0xc0, 0x00
};
const uint8_t bird_wing_down [] PROGMEM = {
  0x03, 0xf0, 0x00, 0x0c, 0x48, 0x00, 0x10, 0x84, 0x00, 0x20, 0x8a, 0x00, 0x40, 0x8a, 0x00, 0x40, 
  0x42, 0x00, 0x7c, 0x3f, 0x00, 0x82, 0x40, 0x80, 0x84, 0xbf, 0x00, 0x88, 0x41, 0x00, 0x78, 0x3e, 
  0x00, 0x07, 0xc0, 0x00
};
const uint8_t* const animation_bird [] PROGMEM = { //Bitmap table,  total 3 frames
  bird_wing_up, bird_wing_mid, bird_wing_down
};

#endif

